package com.yonyou.brigade.third_parties.meiya.service;

import com.baomidou.mybatisplus.service.IService;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.brigade.basic_init.model.IChannelConfig;
import com.yonyou.brigade.order_center.model.ThirdResult;
import com.yonyou.brigade.third_parties.common.model.ThirdUser;
import com.yonyou.brigade.third_parties.common.service.IThirdUserService;
import com.yonyou.brigade.third_parties.meiya.model.MeiyaUser;

import java.util.List;

/**
 * 美亚商旅用户 服务
 *
 * @author kangfw5
 * @since 2019-06-11
 */
public interface IMeiyaUserService extends IService<MeiyaUser>, IThirdUserService {

    /**
     * 批量同步用户
     *
     * @param channelConfig 配置信息
     * @param userList      用户列表
     * @param briChannel
     * @return
     */
    ThirdResult syncUsers(IChannelConfig channelConfig, List<ThirdUser> userList, BriChannel briChannel);

    /**
     * 新增单个用户
     *
     * @param channelConfig 配置信息
     * @param thirdUser     用户
     * @param briChannel
     * @return
     */
    ThirdResult addUser(IChannelConfig channelConfig, ThirdUser thirdUser, BriChannel briChannel);

    /**
     * 更新用户
     *
     * @param channelConfig 配置信息
     * @param thirdUser     用户
     * @param briChannel
     * @return
     */
    ThirdResult updateUser(IChannelConfig channelConfig, ThirdUser thirdUser, BriChannel briChannel);
}
